from starlette.requests import Request

from fastapi import APIRouter

from app.admin.schemas.login import LoginCheckIn
from app.http_base import unified_resp
from app.middleware.permission_required import permission_required

router = APIRouter(prefix='/login')


@router.post('/check')
@permission_required("system:login")
@unified_resp
async def login(request: Request, params: LoginCheckIn):
    return {'token': "123456789"}
